﻿
﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<QuestionCategoryInputModels>" %>

<%--=======
﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<ChoViet.Model.QuestionCategory>" %>
<%@ Import Namespace="ChoViet.Lib.Helpers" %>
>>>>>>> .r188--%>
<%@ Import Namespace="ChoViet.Lib.Helpers" %>
<%@ Import Namespace="ChoViet.Admin.ViewModels" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Chi tiết chuyên mục hỏi đáp
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <%if (ViewData["MessageInfo"] == null)
      { %>
    <table class="admintable" width="100%">
        <tbody>
 <%--           <tr>
                <td class="key">
                    Phân mục
                </td>
                <td>
                    <%=Html.TreeViewList("ParentID", Model.ListParentCategories, "-- Chuyên mục cha --", new { @class = "title" })%>
                </td>
            </tr>--%>
            <tr>
                <td class="key">
                    Tên chuyên mục 
                </td>
                <td>
                    <%=Model.Category.Name%>
                </td>
            </tr>
            <tr>
                <td class="key">
                    Tên viết tắt 
                </td>
                <td>
                    <%=Model.Category.ShortName%>
                </td>
            </tr>
            <tr>
                <td class="key">
                    Mô tả
                </td>
                <td>
                    <%=Model.Category.Description%>
                </td>
            </tr>
            <tr>
                <td class="key">
                    Thứ tự ưu tiên 
                </td>
                <td>
                    <%=Model.Category.Priority%>
                </td>
            </tr>
            <tr>
                <td class="key">
                    Trạng thái hiển thị
                </td>
                <td>
                    <%= Html.RadioButton("ActiveYN", true, Model.Category.ActiveYN)%>
                    Đăng tin
                    <%= Html.RadioButton("ActiveYN", false, !Model.Category.ActiveYN)%>
                    Không đăng
                </td>
            </tr>
        </tbody>
    </table>
    <%}%>

    <script type="text/javascript">
        $(document).ready(function() {
            $("#adminForm").validate();
        });
     
    </script>

</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Toolbar" runat="server">
    <%= Html.Toolbar("Sửa", "/QuestionCategory/Edit/" + Model.ID, "edit")%>
    <%= Html.Toolbar("Xoá", "/QuestionCategory/Delete/" + Model.ID, "delete")%>
    <%= Html.Toolbar("Quay về", "/QuestionCategory", "back")%>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="Header" runat="server">
    Chi tiết chuyên mục hỏi đáp
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="Message" runat="server">
    <%=ViewData["MessageInfo"]!=null? "<p class='perror'>"+Html.Encode(ViewData["MessageInfo"])+"</p>":string.Empty%>
</asp:Content>

